home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / world-wars.swf / scripts / __Packages / classes / Debug.as next >
Text File  |  2011-09-19  |  587b  |  21 lines

  1. class classes.Debug
  2. {
  3.    function Debug(stage)
  4.    {
  5.       this._stage = stage;
  6.    }
  7.    function showError(com)
  8.    {
  9.       this._stage.debuger.removeMovieClip();
  10.       var _loc2_ = this._stage.attachMovie("debuger","debuger",this._stage.getNextHighestDepth(),{_x:40,_y:40});
  11.       _loc2_.message.autoSize = true;
  12.       _loc2_.message.htmlText = "<b>" + com + "</b>";
  13.       _loc2_.bg._width = _loc2_.message._width + 30;
  14.       _loc2_.bg._height = _loc2_.message._height + 8;
  15.       _loc2_.onRollOver = function()
  16.       {
  17.          this.removeMovieClip();
  18.       };
  19.    }
  20. }
  21.